/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controleur;

import java.sql.*;

/**
 *
 * @author James
 */
public class ConnexionBD {
    private static Connection con;
    
    public static Connection creerConnexion() {
        final String URL = "jdbc:mysql://74.59.112.208:8080/";
        final String DB_NAME = "bibliotheque";
        final String DRIVER = "com.mysql.jdbc.Driver";
        final String USER_NAME = "root";
        final String PASSWORD = "root";
        try {
            Class.forName(DRIVER);
            con = DriverManager.getConnection(URL + DB_NAME, USER_NAME, PASSWORD);
        } catch (Exception e) {
        }
        return con;
    }
}
